package com.pedro.streamer;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


public class PlayReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        String msg = intent.getStringExtra("filePath");
        Log.e("yyyyyyyyy", "onReceive: " + msg);
        if (msg != null) {
            AudioPlayer.getSingleton().setDataSource(msg);
            AudioPlayer.getSingleton().start();
        }
    }
}
